<?php
/**
 * Created by PhpStorm.
 * User: dell
 * Date: 2017/5/23
 * Time: 16:39
 */

namespace Home\Component;


use Common\Common\Component;
use Home\Model\Record\RecordModel;

class RecordComponent extends Component
{
    private $model;

    public function __construct()
    {
        $this->model = new RecordModel();
    }

    public function AddRecord($data)
    {
        return $this->model->addRecord($data);
    }

    public function getRecordNum()
    {
        return $this->model->getRecordNum();
    }
}